home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
WindowClickEditor.h
< prev
next >
Wrap
Text File
|
1996-12-24
|
2KB
|
81 lines
/*
* File: WindowClickEditor.h
* Summary: A view that knows how to edit a TWindow's clicking info.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 12/24/96 JDJ Created
*/
#pragma once
#include <ZControl.h>
#include <ZListener.h>
#include <ZWindow.h>
#include "BasePaneEditor.h"
// ===================================================================================
// class CEditWindowClickCommand
// ===================================================================================
class CEditWindowClickCommand : public CBaseEditPaneCommand<TWindow, SWindowInfo> {
typedef CBaseEditPaneCommand<TWindow, SWindowInfo> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CEditWindowClickCommand();
CEditWindowClickCommand(TWindow* pane, const SWindowInfo& oldInfo, const SWindowInfo& newInfo);
//-----------------------------------
// Inherited API
//
public:
virtual void UpdatePane(const SWindowInfo& newInfo);
};
// ===================================================================================
// CWindowClickEditor
// ===================================================================================
class CWindowClickEditor : public CBasePaneEditor<TWindow, SWindowInfo, CEditWindowClickCommand>, public MListener<SControlMessage> {
typedef CBasePaneEditor<TWindow, SWindowInfo, CEditWindowClickCommand> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CWindowClickEditor();
CWindowClickEditor(TView* superView);
//-----------------------------------
// Inherited API
//
protected:
virtual SWindowInfo GetEditorInfo() const;
virtual void SetEditorInfo(const SWindowInfo& info);
virtual void OnReanimated();
virtual void OnBroadcast(const SControlMessage& mesg);
//-----------------------------------
// TReanimator Support
//
public:
static MReanimatable* Create(MReanimatable* parent);
};